﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YXShop.Model.Accessories
{   
    [Serializable]
    public class Questionnaire
    {
        //问卷类
        public Questionnaire()
        {
        }

        #region model
        private int _questid;

        public int Questid
        {
            get { return _questid; }
            set { _questid = value; }
        }
        private string _questname;
        /// <summary>
        /// 问卷名称
        /// </summary>
        public string Questname
        {
            get { return _questname; }
            set { _questname = value; }
        }
        private string _questdescribe;
        /// <summary>
        /// 问卷描述
        /// </summary>
        public string Questdescribe
        {
            get { return _questdescribe; }
            set { _questdescribe = value; }
        }
        private int? _questiphand;
        /// <summary>
        /// 同一IP允许重复提交次数
        /// </summary>
        public int? Questiphand
        {
            get { return _questiphand; }
            set { _questiphand = value; }
        }
        private int? _questvote;
        /// <summary>
        /// 只有登录后才能投票 0否 1是
        /// </summary>
        public int? Questvote
        {
            get { return _questvote; }
            set { _questvote = value; }
        }
        private string _questpwd;
        /// <summary>
        /// 设置密码限制
        /// </summary>
        public string Questpwd
        {
            get { return _questpwd; }
            set { _questpwd = value; }
        }
        private int? _questway;
        /// <summary>
        /// 来访限定方式 0不启用来访限定功能 1仅仅启用白名单，2仅仅启用黑名单 3同时启用白名单与黑名单，先判断IP是否在白名单中，如果不在，则禁止访问；如果在则再判断是否在黑名单中，如果IP在黑名单中则禁止访问，否则允许访问。4同时启用白名单与黑名单，先判断IP是否在黑名单中，如果不在，则允许访问；如果在则再判断是否在白名单中，如果IP在白名单中则允许访问，否则禁止访问。
        /// </summary>
        public int? Questway
        {
            get { return _questway; }
            set { _questway = value; }
        }
        private DateTime? _questendtime;
        /// <summary>
        /// 问卷结束时间
        /// </summary>
        public DateTime? Questendtime
        {
            get { return _questendtime; }
            set { _questendtime = value; }
        }
        private string _questrowform;
        /// <summary>
        /// 允许提交的表单页面地址列表
        /// </summary>
        public string Questrowform
        {
            get { return _questrowform; }
            set { _questrowform = value; }
        }
        private int? _questappearance;
        /// <summary>
        /// 问卷状态 0不开启   1开启
        /// </summary>
        public int? Questappearance
        {
            get { return _questappearance; }
            set { _questappearance = value; }
        }
        #endregion
    }
}
